<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<html>

<%
  String path = request.getContextPath();
  String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
  %>

<head>
  <base href="<%=basePath%>">
  <meta charset="UTF-8">
  <title>图书管理</title>
  <link type="text/css" rel="stylesheet" href="<%=basePath%>/static/css/style.css" >
</head>

<body>

<div id="header">
  <img class="logo_img" alt="" src="<%=basePath%>/static/img/logo.gif" >
  <span class="wel_word">图书管理系统</span>
<%--  <div>
    <a href="book_manager.html">图书管理</a>
    <a href="order_manager.html">订单管理</a>
    <a href="../../index.html">返回商城</a>
  </div>--%>
</div>

<div id="main">
  <table>
    <tr>
      <td>名称</td>
      <td>价格</td>
      <td>作者</td>
      <td>销量</td>
      <td>库存</td>
      <td colspan="2">操作</td>
    </tr>
<c:forEach items="${bookstops}" var="book">
    <tr>
      <td>${book.bookname}</td>
      <td>${book.price}</td>
      <td>${book.author}</td>
      <td>${book.saleamount}</td>
      <td>${book.repository}</td>
      <td><a href="/book/getbookByid?id=${book.bookid}">修改</a></td>
      <td><a href="/book/delete?id=${book.bookid}">删除</a></td>
    </tr>
</c:forEach>
    <tr>
      <td></td>
      <td></td>
      <td></td>
      <td></td>
      <td></td>
      <td></td>
      <td><a href="/pages/manager/book_edit.jsp">添加图书</a></td>
    </tr>
  </table>
</div>

<div id="bottom">
		<span>
			尚硅谷书城.Copyright &copy;2015
		</span>
</div>
</body>
</html>
